<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        div#d0 {
            height: 140px;
            width: 140px;
            border: 2px solid red;
        }
        .kuangao{
            height: 40px;
            width: 40px;
            background-color: red;
        }
        #d1 {
            margin-left: 10px;
            margin-top: 10px;
        }
        #d2 {
            float: right;
            position: relative;
            left: -10px;
            top: -40px;
        }
         #d3 {
             position: relative;
                  left: 50px;
         }
         #d4 {
             position: relative;
             left: 10px;
         }
        #d5 {
            float: right;
            position: relative;
            left: -10px;
            top: -40px;
        }

    </style>
</head>
<body>
<div id="d0">
    <div id="d1" class="kuangao">1</div>
    <div id="d2" class="kuangao">2</div>
    <div id="d3" class="kuangao">3</div>
    <div id="d4" class="kuangao">4</div>
    <div id="d5" class="kuangao">5</div>
</div>

</body>
</html>